package com.migu.rbac.vo;

/**
 * 错误提示枚举类
 */
public enum ErrorCodes {

    /**
     * desc错误的具体内容，code具体错误码
     */
    LOGINNAME_ALREADY_EXIST("LOGINNAME ALREADY EXIST", 10001), PASSWORD_VALIDATE_FAIL("PASSWORD VALIDATE FAIL", 10002), PHONE_VALIDATE_FAIL("PHONE VALIDATE FAIL", 10003),
    OLD_PASSWORD_ERROR("OLD PASSWORD ERROR", 10004), UPDATE_PASSWORD_FAIL("UPDATE PASSWORD FAIL", 10005), LOGINNAME_NOT_EXIST("用户名不存在!", 10006), PASSWORD_WRONG("密码错误!", 10007),
    PHONENUMBER_NOT_EXIST("手机号不存在", 10008), VERIFICATION_WRONG("VERIFICATION WRONG", 10009),
    DELETE_FAIL("DELETE FAIL", 20001),
    SEND_MSG_UPPER_LIMIT("获取验证码次数超过限制", 90001);

    private String desc;
    private int code;

    ErrorCodes(String desc, int code) {
        this.desc = desc;
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public int getCode() {
        return code;
    }
}
